$(function(){
    var idAmostra = $('#idAmostra').val();
    var inicial = $('#inicial').val();
    
    
	jQuery("#gridConsultaSorologia").jqGrid({
		url:"intranet/Consulta/sorologia/idAmostra/"+idAmostra+'/inicial/'+inicial,
		datatype: "json",
		colNames:['Rotina', 'Exame', 'Resposta',  'Valor 1', 'Valor 2', 'Metodologia', 
                          'Kit Sorologia', 'Usuário Cadastro', 'Usuário Atualização'], 
		colModel:[
                        {name:'idRotina',index:'idRotina', width:30,align:"center", search: false},
	   		{name:'resultadoexame',index:'resultadoexame', width:100,align:"center", search: false},
	   		{name:'resposta',index:'resposta', width:40,align:"center", search: false},
	   		{name:'valor1',index:'valor1', width:40,align:"center", search: false},
	   		{name:'valor2',index:'valor2', width:40,align:"center", search: false},
	   		{name:'metodologia',index:'metodologia', width:100,align:"center", search: false},
	   		{name:'kitSorologia',index:'kitSorologia', width:75,align:"center", search: false},
	   		{name:'usuCad',index:'usuCad', width:110, align:"center", search: false},
	   		{name:'usuAtu',index:'usuAtu', width:110, align:"center", search: false}
	   	],
   		//rowNum:20,
   		//rowList:[10,20,30],
   		//shrinkToFit: false, 
   		scroll:true,
                heigth: '300%',
   		width: 1000,
   		pager: '#navConsultaSorologia',
   		sortname: 'idRotina',
   		sortorder: "ASC",
   		multiselect: false,
   		viewrecords: true,
   		loadonce:true,
   		ignoreCase:true,
   		caption:"Amostra: "+idAmostra,
   		grouping:false,
		
		//footerrow: true,
		userdataOnFooter: true
	});
});
jQuery("#gridConsultaSorologia").jqGrid('navGrid','#gridConsultaSorologia',{add:false,edit:false,del:false});
